/* 
 * Change Log:
 *  - 2024-05-23: luozi - adding Circle class
 */

//UI类由几个具体的图形类聚合而成的设计例子
#ifndef _UI_H
#define _UI_H

#include <vector>
#include "Point.h"
#include "Line.h" 
#include "Rectangle.h" 
#include "Circle.h"

//类的组合
class UI{   //用户界面类
	public:
	vector<Point> pointVector; //点对象 
	vector<Line> lineVector;  //线型对象
	vector<Rectangle> rectVector;  //矩型对象
	vector<Circle> circleVector;  //圆圈对象

	void show(){
		for(int i=0;i<pointVector.size();i++)  //pointVector显示 
			pointVector[i].show(); 
			
		for(int i=0;i<lineVector.size();i++)  //lineVector显示 
			lineVector[i].show();  
			
		for(int i=0;i<rectVector.size();i++)  //rectVector显示 
			rectVector[i].show(); 
		
		for(int i=0;i<rectVector.size();i++)  //circleVector显示 
			circleVector[i].show(); 
	}
};
#endif //_UI_H
